package cn.kgc.springboot.day03.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 课工场
 * @date 2024/3/20
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("username")
    private String username;
    private String password;
    private String tel;
    private Integer age;

    @TableLogic   //  标识当前字段是逻辑删除字段  1 删除  0 未删除
    private Integer isDelete;


}
